@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,700|VT323|Megrim|Rajdhani");

*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  //font-family: "Raleway", sans-serif;
  //font-family: "Montserrat", sans-serif;
}

//Media queries
@mixin mq($point) {
  $xs: "(max-width : 0px)";
  $sm: "(max-width : 550px)";
  $md: "(max-width : 1050px)";
  $lg: "(min-width : 1350px)";
  $vl: "(max-width : #{$point}px)";

  @if $point==xs {
    @media #{$xs} {
      @content;
    }
  } @else if $point==sm {
    @media #{$sm} {
      @content;
    }
  } @else if $point==md {
    @media #{$md} {
      @content;
    }
  } @else if $point==lg {
    @media #{$lg} {
      @content;
    }
  } @else {
    @media #{$vl} {
      @content;
    }
  }
}

$maxwidth: 1000px;
$secondarycolor: darken(#f5ca18, 10%);
$callcolor: #c1563d;
$maincolor: #21383a;
$white: #fdfdfd;
$black: #0c0c0c;

$fontheader: "VT323", monospace;
$fontheader: "Megrim", cursive;
$fontheader: "Rajdhani", sans-serif;
$fontheader: "Open Sans", sans-serif;
$font: "Open Sans", sans-serif;

h1,
h2 {
  font-family: $fontheader;
  text-align: center;
  margin: 35px auto;
}

h2 {
  margin-bottom: 10px;
}

p {
  line-height: 1.4;
  margin: 10px auto;
  max-width: 700px;
  width: 100%;
}

h2 {
  text-transform: uppercase;
  font-size: 2.1rem;
}

body {
  color: $white;
  font-family: $font;
  overflow-x: hidden;
}

.wrap {
  max-width: $maxwidth;
  width: 100%;
  padding: 25px 25px;
  margin: 0 auto;
  p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  img {
    margin: 0 auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100%);
    border: solid 5px $white;
  }
}

.maxwidth {
  max-width: $maxwidth;
  margin: 0 auto;
}

header {
  background-color: $maincolor;
  //min-height:600px;
  padding: 50px 25px;
  h1 {
    font-size: 6rem;
    margin-top: 0;
    span {
      color: $callcolor;
    }
  }
  p {
    max-width: 600px;
    line-height: 1.4;
    margin: 25px auto;
    text-align: center;
  }
  .actions {
    margin: 35px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
}
.inputbtn {
  background-color: $secondarycolor;
  color: $white;
  //font-family: $fontheader;
  font-size: 1rem;
  padding: 10px 10px;
}

.btn {
  margin: 15px;
  display: inline-block;
  padding: 0px 25px;
  color: $white;
  font-size: 1.5rem;
  text-decoration: none;
  background-color: $secondarycolor;
  font-family: $fontheader;
  text-transform: uppercase;
  position: relative;
  z-index: 10;
  border: 0;
  &.small {
    margin: 5px 0;
    font-size: 1rem;
    font-family: $font;
  }
  &:after {
    position: absolute;
    top: -5px;
    left: 5px;
    background-color: $secondarycolor;
    width: calc(100% - 10px);
    height: 100%;
    content: "";
    z-index: -1;
  }
  &:before {
    position: absolute;
    bottom: -5px;
    right: 5px;
    background-color: $secondarycolor;
    width: calc(100% - 10px);
    height: 100%;
    content: "";
    z-index: -1;
  }
  &.call {
    background-color: $callcolor;
    &:after,
    &:before {
      background-color: $callcolor;
    }
  }
  //border-radius:0.3rem;
}

.example,
.docs {
  background-color: rgba(lighten($secondarycolor, 0%), 0.5);
  color: $maincolor;
}

.working,
.links {
  background-color: rgba(lighten($maincolor, 5%), 1);
  //color: $maincolor;
}

.links .wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.infoselects {
  width: 100%;
  h3 {
    margin-top: 24px;
  }
  p {
    text-align: left;
    margin-left: 0;
  }
  button.btn {
    cursor: pointer;
  }
}
.colorpalette {
  margin-top: 18px;
  margin-bottom: 18px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  .text {
    margin-right: 15px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    button {
      margin-right: 16px;
      margin-bottom: 0px;
    }
  }
  .icons {
    //margin-top:10px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .colorblock {
    margin-right: 2px;
    margin-bottom: 0px;
    margin-top: 6px;
    height: 25px;
    width: 25px !important;
    border: solid 0px white;
  }
  .ss-main {
    width: calc(100%);
    margin-top: 8px;
    max-width: 480px;
    .ss-single-selected {
      display: inline-flex;
      width: calc(100%);
      background-color: #ececec;
    }
    .ss-option {
      margin-bottom: 6px;
      &:hover {
        background-color: rgba(0, 0, 0, 0.1) !important;
      }
    }
  }
  .ss-content {
    width: 100%;
  }
  .ss-content .ss-list .ss-option {
    padding: 0px 10px;
  }
}

#custompalette {
  margin: 12px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  input {
    margin-right: 12px;
  }
}
#currentpallete {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.container {
  canvas {
    margin: 15px auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
    border: solid 5px $white;
  }
}
.selectors {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  #uploadspan {
    display: inline-flex;
    align-items: center;
    width: 100%;
  }
  label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin: 10px 0;
    margin-right: 15px;
    text-transform: uppercase;
    //font-size:14px;
    flex-shrink: 1;
    &#uploadimage,
    &#uploadpalettelabel {
      flex-grow: 1;
      margin-right: auto;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      input {
        margin: 5px 0;
        padding: 3px;
      }
    }
    @include mq(sm) {
      width: calc(100%);
    }
    span {
      display: inline-block;
      width: 40px;
      margin-left: 5px;
      text-align: center;
    }

    input {
      margin-left: 5px;
      //padding:3px;
      padding: 3px;
      &[type="range"] {
        width: 100px;
      }
      &[type="input"] {
        width: 50px;
      }
    }
  }
}

.dothings {
  margin-top: 15px;
  button {
    border: 0;
    margin-top: 10px;
    padding: 5px 10px;
    text-transform: uppercase;
  }
}

.docs {
  .wrap {
    p {
      text-align: left;
      margin-left: 0;

      &.api {
        font-style: italic;
        padding-left: 10px;
        margin-top: 15px;
        line-height: 1.2;
        strong {
          font-style: normal;
          font-weight: 700;
          //font-family: $fontheader;
          //font-size: 1.1rem;
        }
      }
    }
    pre {
      padding: 10px;
      margin: 10px 0;
      background-color: lighten($maincolor, 75%);
      overflow-x: auto;
      white-space: pre-wrap;
      word-wrap: break-word;
    }
    h3 {
      font-size: 1.8rem;
      margin-top: 50px;
      font-family: $fontheader;
    }
  }
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  width: 100vw;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba($maincolor, 0.4);
  &.active {
    display: flex;
  }
}
.lds-spinner {
  color: official;
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
  //display: none;
}
.lds-spinner div {
  transform-origin: 32px 32px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 29px;
  width: 5px;
  height: 14px;
  border-radius: 20%;
  background: #fff;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.tip {
  margin-top: 12px;
  p {
    text-align: left;
    //display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: unset;
    margin-left: 0;
    font-size: 1rem;
    line-height: 2;
  }
  a {
    display: inline-flex;
    margin-left: 6px;
    margin-right: 6px;
    img {
      border: 0;
      max-width: unset;
      top: 50%;
      transform: unset;
      transform: translateY(0.5rem);
      left: unset;
      margin: 0;
      height: 2rem;
      object-fit: contain;
    }
  }
}
